package

        com.rightrule.controller;

import com.rightrule.common.utils.R;
import com.rightrule.sequence.SequenceService;
import com.rightrule.sequence.enums.SequenceEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 唯一键生成工具
 *
 * @author xiaowu
 * @email 980951938@qq.com
 * @date 2024-08-07 21:19:05
 */
@RestController
public class SequenceController {
    @Autowired
    private SequenceService sequenceService;

    /**
     * 查询
     */
    @RequestMapping("/seq")
    public R selfQuery() {
        String keyNo = sequenceService.createKeyNo("123456789", SequenceEnum.RULE_FLOW_SEQ);
        return R.ok(keyNo);
    }

}
